import request from '@/utils/request.js';

export const fetchUrl = (key) => {
	return request({
		url: `/shop-activity/activity/qrCode/${key}`,
		method: 'get',
	});
};
//云养证书
export const getCloudAdoptCert = (type, code) => {
	return request({
		url: `/shop-core/user/certificate/detail/${type}/${code}`,
		method: 'get',
	});
};

//获取抖音的支付参数
export function getTiktokPayParam(sn) {
	return request({
		url: `/shop-core/app/order/tiktok/applet/${sn}`,
	});
}

//获取抖音的支付参数
export function getTiktokPayParamOfGoods(sn) {
	return request({
		url: `/shop-core/app/order/tiktok/applet/token/${sn}`,
	});
}
///绑定商城的抖音支付订单ID
export function bindShopTiktokOrderId(data, sn) {
	return request({
		url: `/shop-core/app/order/tiktok/applet/bind/${sn}`,
		method: 'post',
		data,
	});
}